package nl.wubinator.aeve.xmlconverters.limited.parsers;

import org.xml.sax.Attributes;

import nl.wubinator.aeve.models.limited.characters.Character;

public class CharacterParser {
	
	public static Character parseAttributes(Attributes atts, Character character) {
		// The character consists of the following attributes:
		// 	- name
		//	- characterID
		//	- corporationName
		//	- corporationId
		character.name = atts.getValue("name");
		character.characterID = Integer.parseInt(atts.getValue("characterID"));
		character.corporationName = atts.getValue("corporationName");
		character.corporationID = Integer.parseInt(atts.getValue("corporationID"));
		
		return character;
	}
}
